<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/base2.css" />

	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">个人信息</h1>
		</header>
		<div class="mui-content">
			<ul class="mui-table-view" id="user">
				<li class="mui-table-view-cell mui-media">
					<a class="mui-navigate-right" href="javascript:;">
						<img id="userimg" class="image mui-media-object mui-pull-left" src="#">
						<div class="mui-media-body">
							用户名
							<p class="mui-ellipsis">用户简介</p>
						</div>
					</a>
				</li>
			</ul>
			<ul class="mui-table-view" style="margin-top: 30px;">
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right">
						账号安全
					</a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right">
						新消息通知
					</a>
				</li>
				<li class="mui-table-view-cell">
					<a class="mui-navigate-right">
						帮助中心
					</a>
				</li>
			</ul>
			<ul class="mui-table-view" style="margin-top: 30px;">
				<li class="mui-table-view-cell" style="text-align: center;">退出登录</li>
			</ul>
		</div>
		<script src="js/mui.min.js"></script>
		<script src="js/wf.js"></script>
		<script src="js/zepto.min.js"></script>
	</body>

</html>
<script type="text/javascript">
	(function(doc) {
		mui.plusReady(function() {
			var self = plus.webview.currentWebview();
			var username = self.username;
			var value = self.value;
			mui.init({
				gestureConfig: {
					doubletap: true
				},

			});
			showImg(username);
			mui("#user").on('tap', '.mui-table-view-cell', function() {
				mui.openWindow({
					url: 'useruploadpic.html',
					id: 'useruploadpic',
					extras: {
						username: username,
						value: value
					}

				});
			});
		});

	}(document));

	function showImg(username) {
		var picname = "User_"+username;
		var img = document.getElementById("userimg");
		img.setAttribute("src", wf.server_Domain + "FileUpload/ReadPic?name=" + picname);
	}
</script>